Combinatorial Analysis

5. Set Partitions

Definition

A partition of a set S such that S=j=1kBj. For each j[1,k] the set Bj is called a block of a partition π and we write |π|=k when π consists of k blocks. In addition S(n,k) denotes the number of partitions of [n] having k blocks and it is called a stirling number of the second kind

Example

The set [4] has seven partitions into two nonempty blocks namely

{1,2,3}{4}:{1,2,4}{3}:{1,3,4}{2}:{2,3,4}{1}:{1,2}{3,4}:{1,3}{2,4}:{1,4}{2,4}
Example

Consider

  1. S(n,2)=2n11
  2. S(n,n)=S(n,1)=1
  3. S(0,0)=1
  4. S(n,n1)=(n2)

(1) follows since each element in [n] can be assigned to either the first or second block so we have 2n possibilities. But because we cannot have cases where all elements are in the first or in the second group in which we case we have 2n2. Finally we need to account for symmetry so dividing by 2 to eliminate symmetry we have 2n11 as desired (see below for more). The last one follows when we consider that in all such permutations at least 1 element must be of size 2. Explicitly they all look like

{x1x2}{x3}{xn}

where order doesn't matter. So our problem is reduced to choosing which item will be size 2. The rest are obvious.

Definition

For nN the total number of partitions of [n] is denoted by B(n) and called a Bell number. In which case it is clear that

B(n)=k=1nS(n,k)

since we just simply summing all cases of number of partitions which are clearly distinct independent cases

Theorem

For every nN0 the following identity holds

B(n+1)=j=0n(nj)B(j)

Proof. By definition of bell number the LHS counts the set of of partitions of [n+1]. In which case we may do

B(n+1)=s=1n+1(ns1)B(n+1s)=j=0n(nj)=j=0n(nj)B(j)

where the second equality follows by considering the block containing {n+1} and enumerating through all it possible sizes. We also enumerated through all its possible members too via (ns1)(number of ways to choose other s1 members not n1 in this block of size s). Then finally B(n+1s) counts the number of ways to partition the remaining n+1s elements. Clearly all distinct cases(all cases the block containing {n+1} will differ in size and members) so summing them up works. The 3rd equality follows by change of variable j=n+1s and the last is obvious.

9. Ordinary Generating Functions

11. Exponential Generating Functions

Definition

Let (an)n0 be a sequence of real numbers. The exponential generating function of (an)n0 is the formal series n=0anxnn!

Example

Let us find an explicit formula for the exponential generating function B(x) of the sequence (B(n))n0 where B(n) denotes the n-th Bell number. Recall that

B(n+1)=k=0n(nk)B(k)

Solution. First notice that

B(x)=n=1B(n)xn1(n1)!=n=0B(n+1)xnn!=n=0k=0n(nk)B(k)xnn!=B(x)ex

Where the 3rd equality follows by a shift in n and the 3rd equality is subbin in B(n+1)=k=0nB(k) into our expression.Finally the last equality follows since

n=0(k=0n(nk)B(k)1nk)xnn!=B(x)ex

since

n=0(1)xnn!=ex and n=0B(n)xnn!=B(x)

Then we obtain ex=(lnB(x))=B(x)B(x) then by fundamental theorem of calculus we know

lnB(x)=ex+C

but knowing B(0)=1 we have C=1 so

B(x)=eex1